{
 query:'<?php echo $query ?>',
 suggestions:[<?php 
 $last = count($authors);
 foreach ($authors as $i => $author) 
 {
   echo "'".$author->getName()."'";
   if ($i != $last-1) echo ',';  
   
 } ?>],
 data:[<?php 
 $last = count($authors);
 foreach ($authors as $i => $author) 
 {
   echo "'".$author->getId()."'";
   if ($i != $last-1) echo ',';  
   
 } ?>]
}